package com.xuanxing123.service.impl;

import com.xuanxing123.dao.IndustryDao;
import com.xuanxing123.model.Industry;
import com.xuanxing123.service.IndustryManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("industryManager")
public class IndustryManagerImpl extends GenericManagerImpl<Industry, Long> implements IndustryManager {
    IndustryDao industryDao;

    @Autowired
    public IndustryManagerImpl(IndustryDao industryDao) {
        super(industryDao);
        this.industryDao = industryDao;
    }

    /**
     * {@inheritDoc}
     */
    public List<Industry> getAll()
    {
        return industryDao.getAll();
    }
}